<?
require("config.php");

$location_status .= "| Add";
$show_backnav = "menu";
$menutype = 2;

if (NULL!=$action){


   $field = array(
	"code",
	"name",
	"date",
	"time",
	"venue",
	"country",
	"contact",
	"status",
	"presented",
	"people",
	"country2","course_link","trainer_link",
	);


   $content = array(
	$Code,
	$Name,
	"$Year-$Month-$Day",

	$Time,
	$Venue,
	$Country2,

	$Contact,

$Status,
$Presented,
$People,
$Country,$course_link, $trainer_link,
	);

   myInsert($table,$field,$content);




   header("location:" . $rela_path . "share/msg.php?v=69&id=$parent_id");

   exit();

}

if (checkCode($table,$Code)){

	header("location:" . $rela_path . "share/msg.php?v=9001");
	exit();
}


require($rela_path . "inc/header.php");
require($rela_path . "bin/date.php");
require($rela_path . "bin/country.php");
?> 
<form name="form1" enctype="multipart/form-data" method="post" action="">
<!--hidden filed-->
<input name="action" type="hidden" value="add">
<input name="parent_id" type="hidden" value="<?print($parent_id)?>">
<input name="Code" type="hidden" value="<?print($Code)?>">

  <table width="95%" border="0" align="center">
    <tr> 
      <td align="right"> <input name="image" type="image" onclick="Redirect('menu.php?id=<?=$parent_id?>',1);return false;" src="../../images/bt_cancel.gif" width="78" height="23"> 
        <input name="image" type="image" src="../../images/bt_save.gif" width="76" height="22"  <?print($active)?>> 
      </td>
    </tr>
  </table>
  <table width="95%" border="0" align="center">
    <tr> 
      <td align="right">&nbsp; </td>
    </tr>
    <tr> 
      <td><table border="0">
          <tr> 
            <td class="tdheader">Code :</td>
            <td> <?print($Code)?> </td>
          </tr>
          <tr> 
            <td class="tdheader">Date :</td>
            <td><?print(FFPdate(date("Y-m-d")))?></td>
          </tr>
          <tr>
            <td class="tdheader">Acuity Evening : </td>
            <td>
              <input name="Presented" type="text" class="text" id="Presented" size="40">            </td>
          </tr>
          <tr>
            <td class="tdheader">Description : </td>
            <td>
              <textarea class="text" name="Name" cols="40" rows="8"></textarea>            </td>
          </tr>
          <tr> 
            <td class="tdheader">Time :</td>
            <td><textarea class="text" name="Time" cols="40" rows="4"></textarea></td>
          </tr>
          <tr> 
            <td class="tdheader">Venue : </td>
            <td><textarea class="text" name="Venue" cols="40" rows="4"></textarea></td>
          </tr>
          <tr>
            <td class="tdheader">Country :</td>
            <td><?print(FFPCountry("HONG KONG"))?></td>
          </tr>
          <tr> 
            <td class="tdheader">Language :</td>
            <td>
			<select name="Country2" class="select">
			<option value="dansk">dansk</option>
			<option value="engelsk">engelsk</option>
			<option value="kantonesisk">kantonesisk</option>
			<option value="Mandarin">Mandarin</option>
			
		<option value="dansk / engelsk">dansk / engelsk</option>
		<option value="dansk / kantonesisk">dansk / kantonesisk</option>
		<option value="dansk / Mandarin">dansk / Mandarin</option>
		
		<option value="kantonesisk / engelsk">kantonesisk / engelsk</option>
		<option value="engelsk / Mandarin">engelsk / Mandarin</option>
		
		<option value="kantonesisk / Mandarin">kantonesisk / Mandarin</option>
	
			</select>			</td>
          </tr>

<!--
          <tr> 
            <td class="tdheader">Fee :</td>
            <td> 

<?

$sourceData = array(
  "HKD",
  "USD",
  "GBP",
  "EURO",
  "DKK",
  );

FFPSelectBox("Currency",$value,$sourceData,$sourceLabel);

?>  
			  
			  <input  class="text" name="Fee" type="text" size="12"> </td>
          </tr>



-->







          <tr> 
            <td class="tdheader">Presenter :</td>
            <td><input class="text" name="Contact" type="text" size="40">			  </td>
          </tr>
          <tr>
            <td class="tdheader">Limit: </td>
            <td>
              <input name="People" type="text" class="text" id="People" value="40" size="5" maxlength="5">            </td>
          </tr>



















          <tr>
            <td><strong>Acuity Evening  Link: </strong></td>
            <td><input name="course_link" type="text" class="text" id="course_link" size="40" /></td>
          </tr>
          <tr>
            <td><strong>Presenter Link: </strong></td>
            <td><input name="trainer_link" type="text" class="text" id="trainer_link" size="40" /></td>
          </tr>
          
          <tr> 
            <td valign="top" class="tdheader">Publish :</td>
            <td> 
			
              <?

$sourceData = array(
  "Yes",
  "No",
  );

$boxName="Status";

$value=$Status;

FFPCheckBox("Status",$Status,$sourceData,$sourceLabel);

?>            </td> 			  
          </tr>


				
				</table>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="95%" border="0" align="center">
    <tr> 
      <td align="right"> <input name="image2" type="image" onclick="Redirect('menu.php?id=<?=$parent_id?>',1);return false;" src="../../images/bt_cancel.gif" width="78" height="23"> 
        <input name="image2" type="image" src="../../images/bt_save.gif" width="76" height="22" <?print($active)?>> 
      </td>
    </tr>
  </table>
</form>
<?
require($rela_path . "inc/footer.php");
?>

